/*
 * @Descripttion: 
 * @Author: xiaodong
 * @Date: 2021-01-18 16:27:34
 * @LastEditTime: 2021-01-25 19:56:06
 * @FilePath: \cloud-monitor-client\src\api\dashboard\index.js
 */
import axios from 'src/libs/api.request'
import { getProjectId } from 'src/libs/util'

export const getProjectUV = (params) => {
  return axios.request({
    url: `project/${getProjectId()}/api/dashboard/uv`,
    method: 'get',
    params: {
      ...params
    }
  })
}
export const getProjectPV = (params) => {
  return axios.request({
    url: `project/${getProjectId()}/api/dashboard/pv`,
    method: 'get',
    params: {
      ...params
    }
  })
}
export const getProjectLog = (params) => {
  return axios.request({
    url: `project/${getProjectId()}/api/dashboard/log`,
    method: 'get',
    params: {
      ...params
    }
  })
}

export const getPerfLog = (params) => {
  return axios.request({
    url: `project/${getProjectId()}/api/dashboard/perf`,
    method: 'get',
    params: {
      ...params
    }
  })
}
